package com.jrx.anytxn.customer.dto.customer;

import com.jrx.anytxn.common.constant.RegexConstant;
import com.jrx.anytxn.customer.dto.BaseApiReq;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户注册保存营销数据
 * @author zcc
 * @version 1.0
 * @date 2020/12/07
 */
public class CustomeRegisterMarketingRecordReq extends BaseApiReq implements Serializable {


    private static final long serialVersionUID = 865503307438144815L;

    @NotBlank(message = "营销数据中手机号不能为空")
    @Pattern(regexp = RegexConstant.MOBILE_FORMAT, message = "手机号格式不对，请正确输入")
    @ApiModelProperty(value="用户注册保存营销数据")
    private String mobile;

    @ApiModelProperty(value="用户注册保存营销数据")
    private String recommenderCode;

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRecommenderCode() {
        return recommenderCode;
    }

    public void setRecommenderCode(String recommenderCode) {
        this.recommenderCode = recommenderCode;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }


}